#include <QApplication>
#include "commonhelper.h"
#include "mainwindow.h"
#include "pm.h"
#include "log.h"
#define _DEBUG

QString timePoint;

int main(int argc, char *argv[])
{    
    QApplication a(argc, argv);
#ifndef _DEBUG
    timePoint = QDateTime::currentDateTime().toString("yyyy-MM-dd-HH-mm-ss");
	qInstallMessageHandler(logMsgOutput);
#endif
//    CommonHelper::setStyle("style.qss");  //蓝色
//    CommonHelper::setStyle("style2.qss");  //黄色
//    CommonHelper::setStyle("style3.qss");  //黑白蓝
//    CommonHelper::setStyle("style4.qss");  //淡蓝色
    MainWindow w;
    
    w.show();
    return a.exec();
}
